package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.DizhiMapper;
import com.ruoyi.jiuzai.domain.Dizhi;
import com.ruoyi.jiuzai.service.IDizhiService;

/**
 * 地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class DizhiServiceImpl implements IDizhiService 
{
    @Autowired
    private DizhiMapper dizhiMapper;

    /**
     * 查询地址
     * 
     * @param dizhiId 地址主键
     * @return 地址
     */
    @Override
    public Dizhi selectDizhiByDizhiId(Long dizhiId)
    {
        return dizhiMapper.selectDizhiByDizhiId(dizhiId);
    }

    /**
     * 查询地址列表
     * 
     * @param dizhi 地址
     * @return 地址
     */
    @Override
    public List<Dizhi> selectDizhiList(Dizhi dizhi)
    {
        return dizhiMapper.selectDizhiList(dizhi);
    }

    /**
     * 新增地址
     * 
     * @param dizhi 地址
     * @return 结果
     */
    @Override
    public int insertDizhi(Dizhi dizhi)
    {
        return dizhiMapper.insertDizhi(dizhi);
    }

    /**
     * 修改地址
     * 
     * @param dizhi 地址
     * @return 结果
     */
    @Override
    public int updateDizhi(Dizhi dizhi)
    {
        return dizhiMapper.updateDizhi(dizhi);
    }

    /**
     * 批量删除地址
     * 
     * @param dizhiIds 需要删除的地址主键
     * @return 结果
     */
    @Override
    public int deleteDizhiByDizhiIds(Long[] dizhiIds)
    {
        return dizhiMapper.deleteDizhiByDizhiIds(dizhiIds);
    }

    /**
     * 删除地址信息
     * 
     * @param dizhiId 地址主键
     * @return 结果
     */
    @Override
    public int deleteDizhiByDizhiId(Long dizhiId)
    {
        return dizhiMapper.deleteDizhiByDizhiId(dizhiId);
    }
}
